home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / widgets / FontviewP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-27  |  2.3 KB  |  85 lines

  1. /* FontviewP.h: private definitions for the Fontview widget, which
  2.    allows viewing of a bitmap font.
  3.  
  4. Copyright (C) 1992 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef FONTVIEW_WIDGET_PRIVATE_H
  21. #define FONTVIEW_WIDGET_PRIVATE_H
  22.  
  23. #include <X11/IntrinsicP.h>
  24. #include <X11/CoreP.h>
  25. #include <X11/Xaw/SimpleP.h>
  26. #include <X11/Xaw/LabelP.h>
  27.  
  28. #include "Fontview.h"
  29.  
  30.  
  31. /* New fields in the Fontview widget class record, i.e., data applicable
  32.    to every instance of the widget.  */
  33. typedef struct
  34. {
  35.   int dummy;
  36. } FontviewClassPart;
  37.  
  38. /* The full class record structure.  */
  39. typedef struct _FontviewClassRec
  40. {
  41.   CoreClassPart core_class;
  42.   SimpleClassPart simple_class;
  43.   LabelClassPart label_class;
  44.   FontviewClassPart fontview_class;
  45. } FontviewClassRec;
  46.  
  47. extern FontviewClassRec fontviewClassRec;
  48.  
  49.  
  50. /* New fields in the Fontview widget record, i.e., data specific to one
  51.    instance of the widget.  */
  52. typedef struct
  53. {
  54.   /* New resources; see Fontview.h for documentation.  */
  55.   XtPointer chars;    /* Points to an array of `char_type's.  */
  56.   XtPointer font_info;    /* Points to a `font_type'.  */
  57.   Dimension line_space;
  58.   Dimension resolution;
  59.   Dimension word_space;
  60.  
  61.   /* Private state.  */
  62.  
  63.     /* The `current character', or NULL.  */
  64.   char_type *current_char;
  65.   
  66.     /* Where we are, in window coordinates, relative to the upper-left
  67.        corner of the pixmap.  */
  68.   coordinate_type current_pos;
  69.   
  70.     /* A GC for drawing things.  */
  71.   GC gc;
  72. } FontviewPart;
  73.  
  74.  
  75. /* The full instance record structure.  */
  76. typedef struct _FontviewRec
  77. {
  78.   CorePart core;
  79.   SimplePart simple;
  80.   LabelPart label;
  81.   FontviewPart fontview;
  82. } FontviewRec;
  83.  
  84. #endif /* not FONTVIEW_WIDGET_PRIVATE_H */
  85.